<?php
/**
 * Dirox Framework
 * Copyright (C) 2005 - 2007 Dirox / Synexser
 * 
 * All rights reserved.
 */

class DRX_RequestHandler
{

	function get($varname)
	{
		$submitted_data = array_merge($_GET, $_POST);
		return isset($submitted_data[$varname]) ? $submitted_data[$varname] : '';

	}

	function getNumber($varname)
	{
		$str_value = DRX_RequestHandler::get($varname);

		return is_numeric($str_value) ? $str_value : 0;
	}

	function getIntNumber($varname)
	{
		return intval(DRX_RequestHandler::getNumber($varname));
	}

}
?>
